Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't generate license field if it's empty #768

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

BLumia
Copy link
Contributor

@BLumia BLumia commented Aug 6, 2020

Describe the PR
Avoid generate license field with empty content in generated YAML and JSON files when running swag init

Relation issue
Intended to resolve #767

Additional context
Let me know if you need any additional info

@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #768 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #768      +/-   ##
==========================================
+ Coverage   82.10%   82.16%   +0.06%     
==========================================
  Files           8        8              
  Lines        1738     1744       +6     
==========================================
+ Hits         1427     1433       +6     
  Misses        193      193              
  Partials      118      118              
Impacted Files Coverage Δ
parser.go 77.13% <100.00%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b712c54...6687c75. Read the comment docs.

@sdghchj sdghchj merged commit d8893d0 into swaggo:master Aug 7, 2020
@sdghchj
Copy link
Member

sdghchj commented Aug 7, 2020

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty license field still get generated if no @License are provided
2 participants